xen/arm64: head: Don't setup the fixmap on secondary CPUs
authorJulien Grall <julien.grall@arm.com>
Sun, 9 Jun 2019 17:16:38 +0000 (18:16 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 31 Jul 2019 19:33:52 +0000 (20:33 +0100)
commitd6d385de8c7be2ae2715de2a1348214dfe0791ee
tree41a268dd209bf75e270d2087ffadf82cd363f5fb
parent9c20f63c1b6da8a906ab985f21472c9e55865b07
xen/arm64: head: Don't setup the fixmap on secondary CPUs

setup_fixmap() will setup the fixmap in the boot page tables in order to
use earlyprintk and also update the register x23 holding the address to
the UART.

However, secondary CPUs are not using earlyprintk between turning the
MMU on and switching to the runtime page table. So setting up the
fixmap in the boot pages table is pointless.

This means most of setup_fixmap() is not necessary for the secondary
CPUs. The update of UART address is now moved out of setup_fixmap() and
duplicated in the CPU boot and secondary CPUs boot. Additionally, the
call to setup_fixmap() is removed from secondary CPUs boot.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/head.S